/*
 * Licensed to The Apereo Foundation under one or more contributor license
 * agreements. See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 *
 * The Apereo Foundation licenses this file to you under the Educational
 * Community License, Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of the License
 * at:
 *
 *   http://opensource.org/licenses/ecl2.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 */


// Main App view
// ----------------------------------------

body {
    min-width: $app-min-width;
}

.page-title {

    h1 {
        font-size: 23px;
        font-weight: 100;
        color: #46647e;
        padding: 0 0 6px;
        margin: 0;
    }

    h4 {
        font-size: 11px;
        color: $medium-prim-color;
    }
}


.main-view {
    box-sizing: border-box;

    // Open state adds 110px to $side-margin
    margin-left: $side-margin;
    padding: 30px $side-margin 60px 0;
    position: relative;

    &.has-alert {
        padding: 10px $side-margin 60px 0;
    }

    .title {

        h1 {
            font-size: 23px;
            font-weight: 100;
            color: #46647e;
            padding: 0 0 6px;
            margin: 0;
        }

        h4 {
            font-size: 11px;
            color: $medium-prim-color;
        }
    }

    .controls-container {
        margin-bottom: 20px;

        // ## Refactor out to .page-title (Start)

        > h1 {
            font-size: 23px;
            font-weight: 100;
            color: #46647e;
            padding: 0 0 6px;
            margin: 0;
        }

        > h4 {
            font-size: 11px;
            color: $medium-prim-color;
        }

        // ## (End)

        .filters-container {
            @include clearfix();
            float: right;
            position: relative;

            // Refactor if ">" selector is not there the filters break
            > span {
                color: $light-prim-color;
                display: inline-block;
                margin-right: 20px;
            }

            strong {
                color: $medium-prim-color;
            }

            .fa-info-circle {
                color: $l-blue;
                cursor: pointer;
            }

            .drop-down-container {
                margin-right: 10px;

                &:last-child {
                    margin-right: 0;
                }

            }

            .search {
                margin-right: 10px;
                width: $small-input-width;

                &:last-child {
                    margin-right: 0 !important;
                }
            }
        }
    }

    #tbl-view-controls-container {
        margin: 20px auto;

        .pagination {
            margin: 0 auto;
            text-align: center;

            a {
                display: inline-block;
                padding: 7px 10px;
                margin-right: 4px;
                border-radius: $main-border-radius - 1;
                box-shadow: inset 0 1px 0 rgba($white, 0.8);
                font-size: 12px;
                font-weight: 600;
                text-decoration: none;
                color: #717171;
                text-shadow: 0 1px 0 rgba($white, 1);
                border: $thin-border-stroke $main-border-color;
                @include linear-gradient(top, #f8f8f8, #e9e9e9);

                // Pulled from Button Mixin (keep in sync with those styles)
                @include linear-gradient(#fff, #f7f7f7);
                border: $thin-border-stroke $main-border-color;
                box-shadow: inset 0px 1px 0px 0px #fff, 0px 1px 2px rgba(0,0,0,.05);
                outline: none;
                color: $medium-prim-color;
                text-shadow: 0px 1px 0px #fff;

                &:hover:not(.active) {
                    border: $thin-border-stroke darken($main-border-color, 2%);
                    @include linear-gradient(darken(#fff, 1%), darken(#f7f7f7, 1%));
                    color: $medium-prim-color;
                }

                &:active {
                    box-shadow: inset 0px 1px 6px 2px rgba(0,0,0,.05);
                }

                > i {
                    font-size: 10px;
                }

                &.prev {
                    @include fa-icon($fa-var-chevron-left, before, inline-block, 0 5px 0 0, 0, inherit, 10px);
                }

                &.next {
                    @include fa-icon($fa-var-chevron-right, after, inline-block, 0 0 0 5px, 0, inherit, 10px);
                }
            }

            .active {
                display: inline-block;
                padding: 7px 10px;
                margin-right: 4px;
                border: none;
                background: #616161;
                box-shadow: inset 0 0 8px rgba($black, 0.5);
                color: #f0f0f0;
                text-shadow: 0 0 3px rgba($black, 0.5);
            }
        }

        .drop-down-container {
            float: right;
        }
    }
}
